/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cassys.ejb.clients;

import cassys.application.services.UserRoleManager;
import cassys.domain.user.UserRoleMapping;
import java.util.List;




/**
 *
 * @author UserRoleMapping
 */
public class LoginManagementDelegate {
      private UserRoleManager loginBeanRemote = null;

    public LoginManagementDelegate()
    {
        try
        {
            loginBeanRemote = ServiceLocator.getInstance().lookupLoginManagerBean();
        }
        catch(Exception e)
        { System.out.println(e.getStackTrace());
        }
    }
     public List<UserRoleMapping> validateUser(String userId,String password)throws Exception{
        return loginBeanRemote.validateUser(userId, password);
    }
 }
